<template>
  <div class="single-form">
    <VolForm ref="myform" :formFields="formFields" :formRules="formRules">
      <div style="text-align: center; margin-top: 10px">
      </div>
    </VolForm>
  </div>
</template>
<script>
let $vue;
import VolForm from "@/components/basic/VolForm.vue";
import { readonly } from "@vue/reactivity";
export default {
  components: { VolForm },
  created() {
    $vue = this;
  },
  onActivated() {},
  OnInit() {
    /* this.editFormOptions.forEach(x => {
	                  x.forEach(item => {
	                      if (item.field == 'remark') {
	                          console.log(item.field);
	                      }
	                  })
	    }) */
  },
  mounted() {
    /* this.$refs.myform.editFormOptions.forEach(x => {
	                 x.forEach(item => {
	                     if (item.field == 'remark') {
	                         console.log(item.field);
	                     }
	                 })
	   }) */
     //if (this.$store.getters.data().curr_yjbm)
     this.formFields.remark=this.$store.getters.data().curr_yjbm
     this.$store.getters.data().curr_yjbm="";
  },
  methods: {
 /*    getForm() {
      this.http
        .post("/api/Fk_reim/update_curr_reimfloat", this.formFields, true)
        .then((result) => {
          //console.log(result);
          this.$parent.$parent.$parent.$parent.$parent.$parent.$refs.reimfloat1.$refs.grid.refresh(); //找到上一层的兄弟控件刷新，查询新数据
          if (!result.status) {
            return this.$message.error(result.message);
          } else {
            this.$Message.info(result.message);
          }
        });
      this.$parent.$parent.$parent.$parent.$parent.$parent.$refs.reimfloat1.$refs.grid.refresh(); //找到上一层的兄弟控件刷新，查询新数据
    }, */
  
  },
  data() {
    //console.log(this.$store.getters.data().curr_reimfloat_remark);
    return {
      loadKey: true,
      index: 1,
      required: false,
      formFields: {
        reyijian: "同意",
        //Variety: "",
        remark: "", // this.$store.getters.data().curr_reimfloat_remark,
      },
      formRules: [
        [
          {
            title: "提交意见",
            required: true,
            field: "reyijian",
            type: "string",
            data: [
              { key: "同意", value: "同意" },
              { key: "不同意", value: "不同意" },
            ],
            type: 'select',
            colSize:3
          },
        ],
        [
          {
            title: "意见详情",
            required: true,
            field: "remark",
            type: "editor",
            height: 110,
          },
        ],
      ],
    };
  },
};
</script>
<style scoped>
.single-form {
  position: relative;
  max-width: 1200px;
  padding: 30px 45px;
  left: 0;
  display: flex;
  margin: auto;
}
</style>